import App from './App';
import uviewPlus from '/uview-plus';
import globalMixin from './mixins/global';
import tool from '/common/utils/tool.js';
import { LoginCenterApi } from './api/modules/LoginCenterApi';
// #ifndef VUE3
import Vue from 'vue';
import './uni.promisify.adaptor';
Vue.config.productionTip = false;
Vue.use(uviewPlus);
Vue.mixin(globalMixin);
App.mpType = 'app';
const app = new Vue({
  ...App,
});

app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue';
import store from './store';
export function createApp() {
  const app = createSSRApp(App);
  app.config.globalProperties.$tool = tool.tool;
  app.use(uviewPlus);
  app.use(globalMixin);
  app.use(store);
  return {
    app,
  };
}
// #endif
